<template>
  <div class="set">
    <van-nav-bar
      title="设置"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <div class="rowBox">
      <div class="row" @click="$router.push({path:'/messageSet'})">
        <div>群发消息</div>
        <div><van-icon name="arrow"  size="20px"/></div>
      </div>
      <div class="row" @click="$router.push({path:'/privacySet'})">
        <div>隐私设置</div>
        <div><van-icon name="arrow"  size="20px"/></div>
      </div>
    </div>

    <div class="rowBox">
      <div class="row" @click="$router.push({path:'/language'})">
        <div>语言切换</div>
        <div><van-icon name="arrow"  size="20px"/></div>
      </div>
      <div class="row" @click="$router.push({path:'/forgetPwd'})">
        <div>修改密码</div>
        <div><van-icon name="arrow"  size="20px"/></div>
      </div>
    </div>

    <div class="rowBox">
      <div class="row">
        <div>清除缓存</div>
        <div class="cache"><span>0.00k</span><van-icon name="arrow" size="20px"/></div>
      </div>
      <div class="row">
        <div>黑名单</div>
        <div><van-icon name="arrow"  size="20px"/></div>
      </div>
    </div>

    <div class="rowBox">
      <div class="row" @click="$router.push({path:'/set'})">
        <div>关于我们</div>
        <div>v1.1.7</div>
      </div>
    </div>
    
    <div class="cancellation">
      <button @click="cancellation">退出登录</button>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        
      }
    },
    methods: {
      cancellation() {
        
      }
    },
  }
</script>

<style lang='less'>
  .set{
    background-color: #e6e6e6;
    min-height: 100vh;
    .van-nav-bar{
      background-color: #5cadff;
      .van-icon{
        color: white;
      }
      .van-nav-bar__title{
        color: white;
      }
    }
    .rowBox{
      margin-bottom: 10px;
      .row{
        background-color: white;
        padding: 10px;
        border-bottom: 1px solid #eeeeee; 
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      .cache{
        display: flex;
        align-items: center;
      }
    }
    .cancellation{
      text-align: center;
      button{
        border: none;
        width: 80%;
        border-radius: 15px;
        color: white;
        padding: 10px 0;
        background-color: #3399ff;
      }
    }
  }
</style>